package com.government.system.domain;

import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 标签类型对象 t_label_type
 * 
 * @author system
 * @date 2023-09-06
 */
public class LabelType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签分类id */
    private Long labelTypeId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 父级id */
    @Excel(name = "父级id")
    private Long parentId;

    public void setLabelTypeId(Long labelTypeId) 
    {
        this.labelTypeId = labelTypeId;
    }

    public Long getLabelTypeId() 
    {
        return labelTypeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("labelTypeId", getLabelTypeId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
